<?php
// $Id: comment.tpl.php,v 1.4.2.1 2008/03/21 21:58:28 goba Exp $

/**
 * @file comment.tpl.php
 * Default theme implementation for comments.
 *
 * Available variables:
 * - $author: Comment author. Can be link or plain text.
 * - $content: Body of the post.
 * - $date: Date and time of posting.
 * - $links: Various operational links.
 * - $new: New comment marker.
 * - $picture: Authors picture.
 * - $signature: Authors signature.
 * - $status: Comment status. Possible values are:
 *   comment-unpublished, comment-published or comment-preview.
 * - $submitted: By line with date and time.
 * - $title: Linked title.
 *
 * These two variables are provided for context.

 * - $comment: Full comment object.
 * - $node: Node object the comments are attached to.
 *
 * @see template_preprocess_comment()
 * @see theme_comment()
 */
  if ($node->type<>"trip_kysimus" ||  $comment->depth>0) {
   $old_links = comment_links($comment, FALSE);
   unset($old_links['comment_reply']);
   $links = theme('links', $old_links);
 
 }
?>
<hr />
<?php if ($comment->depth>0 && $node->type=="trip_kysimus") { ?>
<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status ?> clear-block">

  <div class="meta"><?php print strip_tags($content) ?> - 
    <?php print $submitted ?>
    <?php print $links ?>
  </div>

</div>

<? } else { ?>
<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ' '. $status ?> clear-block">

  <?php /* if ($comment->new): ?>
    <span class="new"><?php print $new ?></span>
  <?php endif;*/ ?>


  <div class="meta">
    <?php print $picture ?>
    <?php print $submitted ?>
    <?php print $links ?>
    <?php // print flag_create_link('comment_bad', $comment->cid); ?>
    <?php // print flag_create_link('comment_good', $comment->cid); ?>
  </div>

  <?php
  if ($node->type<>"trip_kysimus") {
  ?>
  <h3 class="title"><?php print $title ?></h3>
  <?php }
  ?>
  <div class="content">
    <?php print $content ?>
    <?php if ($signature): ?>
    <div class="user-signature clear-block">
      <?php print $signature ?>
    </div>
    <?php endif; ?>
  </div>

</div>
<?php } ?>